package com.chrudgames.juicedietrecipes;


import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.KeyEvent;
import android.view.Menu;
import android.view.MenuInflater;
import android.view.MenuItem;
import android.webkit.WebView;

public class Help extends Activity {
	
	 @Override
	 public boolean onCreateOptionsMenu(Menu menu){
		 MenuInflater inflater = getMenuInflater();
		 inflater.inflate(R.menu.options, menu);
		 return true;
	 }
	 
	 @Override
	 public boolean onOptionsItemSelected(MenuItem item){
		 switch (item.getItemId()){
		 
        case R.id.search:
       	 Intent i3 = new Intent(this, Search.class);
       	 	startActivity(i3);
       	 return true;
		 
		 case R.id.generald:
	    		Intent i = new Intent(this, General.class);
	          	startActivity(i);
			 return true;
			 
        case R.id.help:
        	Intent i2 = new Intent(this, Help.class);
           	startActivity(i2);
            return true;
            
			 default:
				 return super.onOptionsItemSelected(item);
		 }
	 }
	 

	/** Called when the activity is first created. */
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.help);
    
    }
	
protected void onStart() {
	
	 super.onStart();
	
	     WebView webview = (WebView) findViewById(R.id.webView);

     webview.loadUrl("file:///android_asset/help.html"); 

	
}    
 
}